	<div class="column span-3">
		<b><?php echo lang('DATE_TASK')?></b>
	</div>
	<div class="column span-3">
		<b><?php echo lang('PRIORITY')?></b>
	</div>
	<div class="column span-16">
		<b><?php echo lang('DESCR_TASK')?></b>
	</div>
	<div class="column span-2 last">
		<b><?php echo lang('ACTIONS')?></b>
	</div><br>
	<hr style="background-color: blue;">
	
	<?php  if(count($hot)) { ?>
	<strong><?php echo lang('HOT_TASKS')?></strong>
		
	<div id="hot_tasks">
		<?php  foreach($hot as $t) { ?>
		<?php  $bkg = get_task_bkg($t->edate)?>
		<div class="column span-3" style="background-color: <?php echo $bkg?>">
			<?php echo $t->edate?>
		</div>
		<div class="column span-3" style="background-color: <?php echo $bkg?>">
			<?php echo element($t->priority, array(2=>lang('HIGH'), 1=>lang('MEDIUM'), 0=>lang('LOW')))?>
		</div>
		<div class="column span-16" style="background-color: <?php echo $bkg?>">
			<?php echo $t->descr?>
		</div>
		<div class="column span-2 last" style="padding-left: 5px;">
			<a href="javascript: void(0);" title="<?php echo lang('CLOSE_TASK')?>" onclick="if(confirm('<?php echo lang('CONFIRM_CLOSE_TASK')?>')) task_close(<?php echo $t->rid?>);"><?php echo img('public/img/icons/close_inline.gif')?></a>
			<a href="javascript: void(0);" title="<?php echo lang('EDIT')?>" onclick="task_edit(<?php echo $t->rid?>);"><?php echo img('public/img/icons/edit_inline.gif')?></a>
			<a href="javascript: void(0);" title="<?php echo lang('REMOVE')?>" onclick="if(confirm('<?php echo lang('CONFIRM_DELETE_TASK')?>')) task_remove(<?php echo $t->rid?>);"><?php echo img('public/img/icons/delete_inline.gif')?></a>
		</div>
		<?php  } ?>
	</div>
	<?php  } ?>
	
	<?php  if(count($done)) { ?>
	<strong><?php echo lang('COMPLETE_TASKS')?></strong>
	
	<div id="done_tasks">
		<?php  foreach($done as $t) { ?>
		<div class="column span-3">
			<?php echo $t->edate?>
		</div>
		<div class="column span-3">
			<?php echo element($t->priority, array(2=>lang('HIGH'), 1=>lang('MEDIUM'), 0=>lang('LOW')))?>
		</div>
		<div class="column span-16">
			<?php echo $t->descr?>
		</div>
		<div class="column span-2 last"  style="padding-left: 5px;">
			<a href="javascript: void(0);" title="<?php echo lang('OPEN_TASK')?>" onclick="if(confirm('<?php echo lang('CONFIRM_OPEN_TASK')?>')) task_close(<?php echo $t->rid?>);"><?php echo img('public/img/icons/accept_inline.gif')?></a>
		</div>
		<?php  } ?>
	</div>
	<?php  } ?>
	<br><br>
	<div class="column span-24 last">
		<input type="button" class="button" id="add_task_btn" name="add_task_btn" onclick="return task_add();" value="<?php echo lang('NEW_TASK')?>">
	</div>
